#include "entity.h"
#include <iostream>

namespace world {

Entity::Entity(int id, EntityType type, const std::string& name)
    : id_(id)
    , type_(type)
    , name_(name)
{
}

Entity::~Entity()
{
}

int Entity::get_id() const
{
    return id_;
}

Entity::EntityType Entity::get_type() const
{
    return type_;
}

std::string Entity::get_name() const
{
    return name_;
}

const Position& Entity::get_position() const
{
    return position_;
}

void Entity::set_position(const Position& pos)
{
    position_ = pos;
}

void Entity::update()
{
    // 实体更新逻辑
}

} // namespace world    